class TFDamageSparks extends xEmitter;

simulated function postbeginplay()
{
    super.PostBeginPlay();
    settimer(0.2,true);
}

simulated function timer()
{
//    local float size;
    local float part;

    if(tfstation(owner)==none)
    {
        destroy();
        return;
    }

    part=tfStation(owner).maxhealth*0.75;

    if(tfStation(owner).health<part)
    {
        mRegenRange[0]=25*(1-(tfStation(owner).health/part));
        mRegenRange[1]=15*(1-(tfStation(owner).health/part));
        return;
    }
    mRegenRange[0]=0;
    mRegenRange[1]=0;
}

defaultproperties
{
     mSpawningType=ST_Explode
     mStartParticles=0
     mMaxParticles=75
     mLifeRange(0)=0.300000
     mLifeRange(1)=0.500000
     mRegenRange(0)=0.000000
     mRegenRange(1)=0.000000
     mPosDev=(X=36.000000,Y=36.000000,Z=36.000000)
     mSpeedRange(0)=5.000000
     mSpeedRange(1)=7.000000
     mPosRelative=True
     mMassRange(0)=-0.200000
     mRandOrient=True
     mSpinRange(0)=30.000000
     mSpinRange(1)=-30.000000
     mSizeRange(0)=60.000000
     mSizeRange(1)=90.000000
     mGrowthRate=-100.000000
     mAttenKa=0.100000
     mRandTextures=True
     mNumTileColumns=4
     mNumTileRows=4
     Physics=PHYS_Trailer
     RemoteRole=ROLE_SimulatedProxy
     Skins(0)=Texture'AW-2004Explosions.Fire.Part_explode2'
     Style=STY_Translucent
}
